package com.zyw.zhuangdian.pojo.dto;

import com.zyw.zhuangdian.constant.ServiceConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("菜单配置表")
public class MenuDto extends PageDto{
    @ApiModelProperty("主键id")
    private Long mid;
    @ApiModelProperty("菜单名称 30")
    private String title;
    @ApiModelProperty("图标 30")
    private String icon;
    @ApiModelProperty("路径 50")
    private String route;
    @ApiModelProperty("父菜单id")
    private Long belongTo;
    @ApiModelProperty("菜单顺序")
    private int seq;
    @ApiModelProperty("菜单级别 1 一级 2 二级")
    private int level;
    @ApiModelProperty("权限 1 管理员 2 admin")
    private int privilege;
    @ApiModelProperty("记录状态 0 失效 1 有效")
    private int status = ServiceConstant.STATUS_VALID;
    @ApiModelProperty("创建时间")
    private Date createTime;
}

